package constInterface;

public enum Direction implements Speed
{ 
	u("u",0,-Yspeed),d("d",0,Yspeed),
	l("l",-Xspeed,0),r("r",Xspeed,0),
	lu("lu",-Xspeed/2,-Yspeed/2),ru("ru",Xspeed/2,-Yspeed/2),
	ld("ld",-Xspeed/2,Yspeed/2),rd("rd",Xspeed/2,Yspeed/2),n("n",0,0);
	
	String name = "n";
	float x,y;
	private Direction(String string , float Xspeed , float Yspeed)
	{
		name = string;
		x = Xspeed;
		y = Yspeed;
	}
	
	public String getName()
	{
		return name;
	}
	
	public float getXspeed()
	{
		return x;
	}
	public float getYspeed()
	{
		return y;
	}
	
}
interface Speed
{
	static float Xspeed =0.13f;
	static float Yspeed =0.13f;
}